﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
<!--
#Layer1 {
	position:absolute;
	width:265px;
	height:80px;
	z-index:100;
	left: 35%;
	top: 40%;
	background-color: #fdfce9;
	border: 1px solid #666666;
}
body{font-size:12px}
#Layer2 {
	position:absolute;
	width:100%;
	height:100%;
	z-index:10;
	left: 0px;
	top: 0px;
	background-color:#eeeeee;
	FILTER: alpha(opacity=80); 
}
-->
</style>
<script language=javascript>
function showmsg(str)
{
   obj1=document.getElementById("Layer1");
   obj2=document.getElementById("Layer2");
   if(str==0)
   {
     obj1.style.display="none";
     obj2.style.display="none";
   }
   else
   {
     obj1.style.display="";
     obj2.style.display="";
   }
}
</script>
</head>
<body>
<div id="Layer1" style="display:none">
  <div align="center">
    <p>&nbsp;</p>
    <p><img src="image/loading.gif" width="20" height="20" align="absmiddle" /> 加载数据，请稍候！！</p>
  </div>
</div>
<div id="Layer2" style="display:none"></div>
    <form id="form1" runat="server">
    <div>
        &nbsp;
        <asp:TextBox ID="TextBox1" runat="server" Height="142px" TextMode="MultiLine" Width="332px"></asp:TextBox>
        <br />
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
        <br />
        <asp:TextBox ID="TextBox2" runat="server" Height="122px" TextMode="MultiLine" Width="291px"></asp:TextBox>
        <br />
        <select id="Select1">
            <option selected="selected"></option>
        </select>
        <input id="Button2" type="button" value="button" onclick="getdata();"/><input type="button" value="test" onclick="alert(document.getElementById('Select1').value);" /></div>
  <script language=javascript>
  function getdata()
  {  showmsg(1);
     test.getdata(data_cback);
  }
  function data_cback(response)
  {
     document.getElementById("Select1").length=0;
     ds=response.value;
     for(i=0;i<ds.Tables[0].Rows.length;i++)
        document.getElementById("Select1").options.add(new Option(ds.Tables[0].Rows[i].username,ds.Tables[0].Rows[i].pid));
    showmsg(0);
  }
  </script>
  <table id="tb"></table>
    </form>
</body>
</html>
